import java.util.Scanner;

public class Test1 {
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        System.out.println("请输入字符串：");

        String strString = scan.nextLine();

        char array[] = strString.toCharArray();

        int i = 0;

        while (i < strString.length())
        {
            System.out.print(array[array.length - i - 1]);
            i++;
        }
    }
    }

